package com.simple.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.simple.common.utils.PageUtils;
import com.simple.gulimall.product.entity.AttrGroupEntity;
import com.simple.gulimall.product.vo.AttrGroupRelationVo;
import com.simple.gulimall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author simpleZzz
 * @email 2466714892@qq.com
 * @date 2020-07-04 00:25:58
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void removeRelation(AttrGroupRelationVo[] attrGroupRelationVos);

    boolean removeGroupWithoutRelation(Long[] attrGroupIds);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
}

